package com.ruoyi.driver.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.driver.mapper.TbDriverBankMapper;
import com.ruoyi.driver.domain.TbDriverBank;
import com.ruoyi.driver.service.ITbDriverBankService;

/**
 * 司机银行卡记录表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-27
 */
@Service
public class TbDriverBankServiceImpl implements ITbDriverBankService 
{
    @Autowired
    private TbDriverBankMapper tbDriverBankMapper;

    /**
     * 查询司机银行卡记录表
     * 
     * @param bankId 司机银行卡记录表主键
     * @return 司机银行卡记录表
     */
    @Override
    public TbDriverBank selectTbDriverBankByBankId(Integer bankId)
    {
        return tbDriverBankMapper.selectTbDriverBankByBankId(bankId);
    }

    /**
     * 查询司机银行卡记录表列表
     * 
     * @param tbDriverBank 司机银行卡记录表
     * @return 司机银行卡记录表
     */
    @Override
    public List<TbDriverBank> selectTbDriverBankList(TbDriverBank tbDriverBank)
    {
        return tbDriverBankMapper.selectTbDriverBankList(tbDriverBank);
    }

    /**
     * 新增司机银行卡记录表
     * 
     * @param tbDriverBank 司机银行卡记录表
     * @return 结果
     */
    @Override
    public int insertTbDriverBank(TbDriverBank tbDriverBank)
    {
        return tbDriverBankMapper.insertTbDriverBank(tbDriverBank);
    }

    /**
     * 修改司机银行卡记录表
     * 
     * @param tbDriverBank 司机银行卡记录表
     * @return 结果
     */
    @Override
    public int updateTbDriverBank(TbDriverBank tbDriverBank)
    {
        return tbDriverBankMapper.updateTbDriverBank(tbDriverBank);
    }

    /**
     * 批量删除司机银行卡记录表
     * 
     * @param bankIds 需要删除的司机银行卡记录表主键
     * @return 结果
     */
    @Override
    public int deleteTbDriverBankByBankIds(Integer[] bankIds)
    {
        return tbDriverBankMapper.deleteTbDriverBankByBankIds(bankIds);
    }

    /**
     * 删除司机银行卡记录表信息
     * 
     * @param bankId 司机银行卡记录表主键
     * @return 结果
     */
    @Override
    public int deleteTbDriverBankByBankId(Integer bankId)
    {
        return tbDriverBankMapper.deleteTbDriverBankByBankId(bankId);
    }
}
